<body>
Autodiscovery Driver for Scriptella.
<p>Automatically discovers a driver based on the specified url.
This driver is used by default if no "driver" connection attribute was specified.
<p><em>Note:</em>
    Autodiscovery serves for convenience purposes and works only with JDBC drivers and URL schemes supported by Scriptella,
    in other cases driver's name has to be specified manually.
    If you get error messages like <em>Unable to automatically discover driver for url</em>, that means the specified
    URL cannot be recognized and you have to explictly specify "driver" connection attribute.
</p>
<p>Supported URL schemes:</p>
<ul>
    <li><b>jdbc:</b> managed by JDBC drivers, e.g. jdbc:oracle:, jdbc:mysql etc.</li>
    <li><b>spring:</b> and <b>jndi:</b> for Spring and JNDI managed datasources.</li>
    <li><b>mailto:</b> managed by Mail driver.</li>
    <li><b>ldap:</b> managed by LDAP driver</li>
</ul>

<h2>General information</h2>
<table>
    <tr>
        <td><b>Driver class:</b></td><td><code>scriptella.driver.auto.Driver</code></td>
    </tr>
    <tr>
        <td><b>Driver alias name:</b></td><td><code>auto</code></td>
    </tr>
    <tr>
        <td><b>URL:</b></td><td>Specific to an underlying driver</td>
    </tr>
    <tr>
        <td><b>Runtime dependencies:</b></td><td>Depends on an underlying driver.</td>
    </tr>
</table>
<h2>Example</h2>
<code><pre>
    &lt;!-- connection to a SQL Server database via JTDS driver-->
    &lt;connection driver="auto" url="jdbc:jtds:sqlserver://localhost:1433/northwind"/&gt;

    &lt;!-- connection to a JNDI bound datasource -->
    &lt;connection url="jndi:ds/appDataSource"/&gt;

    &lt;!-- connection to a Spring managed datasource -->
    &lt;connection url="spring:myDataSource"/&gt;

    &lt;!-- connection to Mail driver-->
    &lt;connection url="mailto:user@host?subject=Hello"&gt;
        mail.smtp.host=mail.host.name
        mail.user=user
        mail.password=password
    &lt;/connection>


</pre></code>

</body>